package com.xiaotu.controller;

import com.xiaotu.service.PlayerImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangxiao
 * @create 2022-03-18 17:20
 */
@RequestMapping("playerImage")
@RestController
@CrossOrigin
public class PlayerImageController {

    @Autowired
    private PlayerImageService playerImageService;

    /**
     * 获取头像列表
     *
     * @return
     */
    @GetMapping("getPlayerImages")
    public Object getPlayerImages() {
        return playerImageService.getPlayerImages();
    }

}
